package mpcs.utils.tooltip
{
	import mx.skins.Border;
	
	/**
	 *  提示样式
	 * @author zhangzuoqiang
	 */
	public class TopArrowToolTip extends Border {
		public function TopArrowToolTip() {
			super();
		}
			
		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
			super.updateDisplayList(unscaledWidth, unscaledHeight);
			
			graphics.clear ();
			graphics.lineStyle(2.5, 0xa1b444, 1);
			graphics.beginFill(0xF3F3F3, .95);
			graphics.moveTo (0, 0);
			
			// top line
			graphics.lineTo (unscaledWidth, 0);
			
			// right line
			graphics.lineTo (unscaledWidth, unscaledHeight);
			
			// bottom line
			graphics.lineTo (0, unscaledHeight);
			
			// draw arrow on the LEFT
			graphics.lineTo (0, unscaledHeight/2 + 7);
			graphics.lineTo(-15, unscaledHeight/2);
			graphics.lineTo(0, unscaledHeight/2 - 7);
			
			// end the shape
			graphics.moveTo (0, 0);
			graphics.endFill();
		}		
		
	}
}